package com.zegome.game.oanquan.gamelogic;

import com.zegome.game.oanquan.GameCenter;
import com.zegome.game.oanquan.scene.play.PondData;

/**
 * (C) 2013 ZeroTeam
 * @author QuanLT
 */

public class TempPond {
	final boolean isCourting;
	boolean isEated;
	int mValue;
	
	int mReadyDevide;
	
	TempPond(final boolean isCourting) {
		this.isCourting = isCourting;
		
		mValue = 0;
		isEated = false;
	}
	
	boolean isEating() {
		if (!isCourting) return true;
		if (!isEated) {
			if (mValue >= GameCenter.COURTING) return true;
			return false;
		}
		return true;
	}
	
	void deepCopy(final PondData pond) {
		isEated = pond.isEated();
		mValue = pond.getStone();
	}
	
	void deepCopy(final TempPond pond) {
		isEated = pond.isEated;
		mValue = pond.mValue;
	}
}

